import request from '@/utils/request'

// 查询左侧treelist
export function getUserGroup(query) {
  return request({
    url: '/flowable/userGroup/groupList',
    method: 'get',
    params: query
  })
}

// 根据点击左侧的treelist的id 回显右侧用户列表
export function listUser(query) {
  return request({
    url: '/flowable/userGroup/userList',
    method: 'get',
    params: query
  })
}

// 用户组同步属性
export function postGroup() {
  return request({
    url: '/flowable/userGroup/group/syn',
    method: 'post',
    timeOutValidate: false,
  })
}

// 用户组同步缓存
export function getGroup() {
  return request({
    url: '/flowable/userGroup/group/status',
    method: 'get',
  })
}

// 用户同步属性
export function postUser() {
  return request({
    url: '/flowable/userGroup/user/syn',
    method: 'post',
    timeOutValidate: false,
  })
}

// 用户同步缓存
export function getUser() {
  return request({
    url: '/flowable/userGroup/user/status',
    method: 'get',
  })
}
